package sesBean;

import beans.Priority;
import beans.Pulje;
import beans.Student;
import beans.Studentsubject;
import beans.Subject;

import java.util.List;

import javax.ejb.Remote;

@Remote
public interface SessionEJB
{
  Object mergeEntity(Object entity);

  Object persistEntity(Object entity);

  List<Priority> queryPriorityFindAll();

  List<Priority> queryPriorityFindAllByRange(int firstResult,
                                             int maxResults);

  void removePriority(Priority priority);

  List<Studentsubject> queryStudentsubjectFindAll();

  List<Studentsubject> queryStudentsubjectFindAllByRange(int firstResult,
                                                         int maxResults);

  void removeStudentsubject(Studentsubject studentsubject);

  List<Pulje> queryPuljeFindAll();

  List<Pulje> queryPuljeFindAllByRange(int firstResult, int maxResults);

  void removePulje(Pulje pulje);

  List<Subject> querySubjectFindAll();

  List<Subject> querySubjectFindAllByRange(int firstResult,
                                           int maxResults);
  
  Subject querySubjectFindByID(int iD);

  void removeSubject(Subject subject);

  List<Student> queryStudentFindAll();

  List<Student> queryStudentFindAllByRange(int firstResult,
                                           int maxResults);
  
  Student queryStudentFindByID(int iD);

  void removeStudent(Student student);
}
